package com.lollipop.synthential.java8.lambda.syntax.Exercise;

/**
 * @Author: J.K
 * @Date: 2021-02-16 15:49
 * @Description:
 */
public class Excise5 {
    public static void main(String[] args) {
        // 需求：开辟一条线程,做一个数字的输出
        Thread t = new Thread(() -> {
            for (int i = 0; i < 20; i++) {
                System.out.println(i);
            }
        });
        t.start();
    }
}
